﻿using UnityEngine;

namespace Actors
{
    /// <summary>
    /// Actor 视觉表现类
    /// </summary>
    public class ActorVisual 
    {
        protected readonly Actor m_Owner;
        public GameObject gameObject { get; }

        public ActorVisual(Actor owner)
        {
            m_Owner = owner;
            gameObject = new GameObject();

#if UNITY_EDITOR
            gameObject.name = $"{m_Owner.GetType().Name}_{m_Owner.UID}";
#endif
            
        }
    }
}